//package com.neusoft.zqygbc.neusoft_wenda.adapter;
//
//import android.content.Context;
//import android.content.Intent;
//import android.support.v7.widget.RecyclerView;
//import android.view.LayoutInflater;
//import android.view.View;
//import android.view.ViewGroup;
//import android.widget.ImageView;
//import android.widget.LinearLayout;
//import android.widget.TextView;
//
//import com.jcodecraeer.xrecyclerview.XRecyclerView;
//import com.neusoft.zqygbc.neusoft_wenda.R;
//import com.neusoft.zqygbc.neusoft_wenda.activity.QuestionContentActivity;
//import com.neusoft.zqygbc.neusoft_wenda.javeBean.QuestionEntity;
//
//import java.util.List;
//
///**
// * Created by Lenovo on 2017/5/17.
// */
//
//public class UserFollowListAdapter extends XRecyclerView.Adapter<RecyclerView.ViewHolder> {
//
//    private Context mContext;
//    private List<QuestionEntity> mDataList;
//    private LayoutInflater mLayoutInflater;
//
//    public UserFollowListAdapter(Context mContext, List<QuestionEntity> mDataList) {
//        this.mContext = mContext;
//        this.mDataList = mDataList;
//        mLayoutInflater = LayoutInflater.from(mContext);
//    }
//
//    @Override
//    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
//
//        View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.cardview_myfollow,parent,false);
//        ic_return new UserFollowListAdapter.ViewHolder(v);
//    }
//
//
//    @Override
//    public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
//        final QuestionEntity entity =  mDataList.get(position);
//        if (null == entity)
//            ic_return;
//        QListAdapter.ViewHolder viewHolder = (QListAdapter.ViewHolder) holder;
//        viewHolder.home_username.setText(entity.getUsername());
//        viewHolder.home_date.setText(entity.getCreatetime());
//        viewHolder.home_type.setText(entity.getTid());
//        viewHolder.home_description.setText(entity.getDescription());
//
//        viewHolder.qlist_container.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                Intent intent =new Intent(mContext, QuestionContentActivity.class);
//                intent.putExtra("qid",entity.getQid());
//                mContext.startActivity(intent);
//            }
//        });
//
//
//
//    }
//
//
//    @Override
//    public int getItemCount() {
//        ic_return mDataList.size();
//    }
//
//    public class ViewHolder extends RecyclerView.ViewHolder{
//        ImageView userfollow_userphoto;
//        TextView userfollow_username,userfollow_btn_cencal;
//        LinearLayout qlist_container;
//
//
//
//        public ViewHolder(View itemView) {
//            super(itemView);
//            qlist_container= (LinearLayout) itemView.findViewById(R.id.qlist_container);
//            userfollow_userphoto = (ImageView) itemView.findViewById(R.id.userfollow_userphoto);
//            userfollow_username = (TextView) itemView.findViewById(R.id.userfollow_username);
//            userfollow_btn_cencal = (TextView) itemView.findViewById(R.id.userfollow_btn_cencal);
//
//
//        }
//    }
//
//
//}
